﻿using DocumentFormat.OpenXml.Presentation;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PPTHelper.BLL.TimingRoot
{
    /// <summary>
    /// 所有时间节点的基类
    /// </summary>
    public abstract class CommonTimeNodeContainer
    {
        /// <summary>
        ///  
        /// </summary>
        static public Collection<ElementInfo> ElementInfos { get; set; }

        /// <summary>
        /// 通过父亲节点来共享父亲的属性
        /// </summary>
        public TimeNodeContainer Parent { get; set; }


        /// <summary>
        /// 运行一个动画
        /// </summary>
        virtual public void Run(TriggerInfo triggerInfo)
        {
            Console.WriteLine("没有任何需要执行的操作，操作对象为" + this.GetType().Name + "。");
            return;
        }

        /// <summary>
        /// 默认构造
        /// </summary>
        public CommonTimeNodeContainer()
        {
            ElementInfos = new Collection<ElementInfo>();
        }
    }
}
